<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
use yii\bootstrap\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\User */
$this->registerJsFile('/js/jquery.SuperSlide.2.1.1.js');
$this->registerCssFile('/css/common.css');
$this->registerCssFile('/fonts/iconfont.css');
$this->registerCssFile('/css/purebox-metro.css');
$this->registerCssFile('/css/address.css');
$this->registerJsFile('/js/purebox/application.js');
$this->registerJsFile('/js/purebox/bootstrap-affix.js');
$this->registerJsFile('/js/purebox/jquery.purebox.js');
$this->title = Yii::$app->user->identity->username . '的个人资料';
?>
<div class="info_content">
					<!--地址管理样式-->
					<div class="adderss_style">
						<div class="title_Section">
							<span>收货地址管理</span>
						</div>
						<div class="adderss_list">
							<!--地址列表-->
							<div class="Address_List clearfix">
							<?php if(!empty($data)):?>
							<?php foreach($data as $val):?>
								<!--地址类表-->
								<ul class="Address_info">
									<div class="address_title">
										<a href="#"
											class="modify iconfont icon-fankui btn btn-primary"
											title="修改信息" data-toggle="modal" id="purebox"></a> 地址信息 <a
											href="javascript:over('0')" class="delete "><i
											class="iconfont icon-close2"></i></a>
									</div>
									<li><?=$val['name']?></li>
									<li><?=$val['name']?></li>
									<li><?=$val['tel']?></li>
									<li>610000</li>
								</ul>
							<?php endforeach;?>
							<?php endif;?>
							</div>
						</div>
						<form>
							<div class="Add_Addresss">
								<div class="title_name">
									<i></i>添加地址
								</div>
								<table>
									<tbody>
										<tr>
											<td class="label_name">收货区域</td>
											<td colspan="3" class="select"><label> 国家/地区 </label><select
												class="kitjs-form-suggestselect "></select> <label>
													省份 </label><select class="kitjs-form-suggestselect "></select> <label>
													市/县 </label><select class="kitjs-form-suggestselect "></select> <label>
													区/县 </label><select class="kitjs-form-suggestselect"></select></td>
										</tr>
										<tr>
											<td class="label_name">详细地址</td>
											<td><input name="Address[community]" type="text" class="Add-text"><i>（必填）</i></td>
											<td class="label_name">手&nbsp;&nbsp;机</td>
											<td><input name="Address[tel]" type="text" class="Add-text"><i>（必填）</i></td>
										</tr>
										<tr><td class="label_name">收件人姓名</td>
											<td><input name="Address[name]" type="text" class="Add-text"><i>（必填）</i></td>
											
											<td class="label_name">邮&nbsp;&nbsp;编</td>
											<td><input name="Address[code]" type="text" class="Add-text"><i></i></td>
										</tr>
										<tr>
											<td class="label_name">固定电话</td>
											<td><input name="Address[phone]" type="text" class="Add-text"><i>（选填）</i></td>
											<td class="label_name"></td>
											<td></td>
										</tr>
									</tbody>
								</table>
								<div class="address_Note">
									<span>注：</span>只能添加5个收货地址信息。请乎用假名填写地址，如造成损失由收货人自己承担。
								</div>
								<div class="btn">
									<input name="1" type="submit" value="添加地址" class="Add_btn">
								</div>

							</div>
						</form>
					</div>
				</div>